package com.kr.aia.powerrp.common;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import android.widget.ImageButton;

public class commonOnTouchListener implements OnTouchListener {

	@Override
	public boolean onTouch(View v, MotionEvent event) {
		ImageButton view = (ImageButton) v;
		
		switch (event.getAction()) {
			case MotionEvent.ACTION_DOWN:
				//view.setPadding(2, 2, 2, 2);
                view.setColorFilter(0xaaFFFFFF);
                break;
            case MotionEvent.ACTION_UP:
                //view.setPadding(0, 0, 0, 0);
                view.setColorFilter(0x00FFFFFF);
                break;
            }
		return false;
	}

}